<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="${ctx}/res/js/survey/surveyManagement/surveyList.js"></script>
<script type="text/javascript" src="${ctx}/res/js/jquery.validate.js"></script>
</head>
<body>
	<center>
		<table>
			<!-- 查询条件区域 -->
			<tr>
				<td>
					<div class="list_query">
						<form action="findSurveys.do" method="post" id="queryForm">
						
							<table>
								<tr>
									<td style="text-align: right;">
										<label><span>SURVEY_NAME</span><input type="text"  id="surveyName"  style="margin-top:10px;width:200px;font-size:15px" placeholder="请输入SURVEY_NAME" name="surveyName" value="${surveyName}"/></label> 
										<label>
									</td>
									<td>
										<label>
											<span>STATUS</span>&nbsp;&nbsp;&nbsp;
											<select id="status" name="status" style="width:220px;height:32px;font-size:15px"  >
												<option value="">请选择STATUS</option>
												<option value="0">草稿</option>
												<option value="1">投票中</option>
												<option value="2">已结束</option>
											</select>
										</label> 
									</td>
									<td style="text-align: right;">
										<label><span>END_DATE</span><input  id="endDateStr" type="text" style="margin-top:10px;width:200px;font-size:15px" placeholder="请输入END_DATE" name="endDateStr"  readonly value="${endDateStr}"/>
										</label>
									</td>
								</tr>
							</table>
						</form>
					</div>
				</td>
			</tr>
			
			<!-- 按钮操作区域 -->
			<tr>
			<td>
				<div class="list_toolbar">
					<div class="toolButton" onclick="resetButton()">    清空       </div>
					<div class="toolButton" onclick="queryData()" >     查询       </div>
					<div class="toolButton" onclick="newSurvey()">      新建       </div>
					<div class="toolButton" onclick="copySurvey()">     复制       </div>
					<div class="toolButton" onclick="editSurvey()">     修改       </div>
					<div class="toolButton" onclick="deleteSurvey()">   删除       </div>
					<div class="toolButton" onclick="stopVote()" >      停止投票</div>
					<div class="toolButton" onclick="previewSurvey()">  预览       </div>
					<div class="toolButton" onclick="releaseSurvey()">  发布       </div>
					<div class="toolButton" onclick="toEditQuestion();">编辑问题</div>
					<div class="toolButton" onclick="viewResult();">    查看结果</div>
					<div class="toolButton" onclick="popupEmail();">    发送邮件</div>
				</div>
			</td>
		</tr>
			<!-- 表头区域-->
			<tr>
				<td>
					<table class="list_grid">
						<thead>
							<tr>
								<th >SURVEY_NAME</th>
								<th >STATUS</th>
								<th style="width: 220px;">REMARK</th>
								<th >END_DATE</th>								
								<th >CREATE_TIME</th>
								<th >LAST_MODIFY_TIME</th>
								<th style="width: 1px;"></th>
							</tr>
						</thead>
					</table>
				</td>
			</tr>
			
			<!-- 数据区域 -->
			<tr>
				<td>
					<div class="list_scrollControlDiv">
						<table class="list_grid" style="border-spacing: 0;">
							<tbody id="tBodyList">
							</tbody>
						</table>
					</div>
				</td>
			</tr>
			
			<!-- 分页控件区域 -->
			<tr>
				<td>
					<div id="pagination" class="pagination"></div>
					<input type="hidden" name="pageType" id="pageType" value="${pageType }"/>
				</td>
			</tr>
		</table>
	</center>
	<form id="submitForm" method="post" action="${ctx}/survey/surveyManagement/surveyDetails.do">
		<input type="hidden" name="survey_Id"/>
	</form>
	<form id="viewSurvey" method="post" action="${ctx}/survey/surveyVote/previewSurvey.do">
		<input type="hidden" name="thisType">
		<input type="hidden" name="surveyId"/>
		<input type="hidden" name="query_condition_field_list" value="surveyId"/>
	</form>
	<form id="viewResult" method="post" action="${ctx}/survey/surveyStatistics/surveyResultStatistics/survey.do">
		<input type="hidden" name="survetyId"/>
	</form>
	<form id="viewQuestionEdit" method="post" action="${ctx}/survey/surveyManagement/surveyDesign/gotoEditQuestion.do">
		<input type="hidden" name="surveyId"/>
	</form>
</body>
</html>